//
//  StrategyNotesParser.m
//  ITrip
//
//  Created by 1564335 on 15-6-2.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyNotesParser.h"

@implementation StrategyNotesParser

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        if ([dic[@"width"] isKindOfClass:[NSNull class]]) {
            self.width = 0;
            self.height = 0;
            self.photo_url = @"";
        } else {
            self.photo_url = dic[@"photo_url"];
            self.width = [dic[@"width"] integerValue];
            self.height = [dic[@"height"] integerValue];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}


@end
